#ifndef __SYNCMANAGER_H__
#define __SYNCMANAGER_H__

#include "SyncManagerExport.h"
#include "OgreSingleton.h"
#include "OMTimer.h"
#include "hawkthreads.h"

#define MAX_MOVIE 30

class _SyncLibPluginExport CSyncManager : public Ogre::Singleton<CSyncManager>
{
public:
	CSyncManager(bool isServer);
	virtual ~CSyncManager(void);

	static CSyncManager& getSingleton(void);
	static CSyncManager* getSingletonPtr(void);

	void setTime(OMTimer &timer);

public:
	bool m_IsPlayingMovie;
	bool m_IsServer;
	bool m_Reset;
	HTmutex m_updateMutex;
	int m_moviesFrame[MAX_MOVIE];
	Camera *m_currentCamera;
	int m_MovieFrame;
	OMTimer m_Timer;
};

#endif //__SYNCMANAGER_H__